package sample;

import org.apache.log4j.Logger;

public class App {
    private static org.apache.log4j.Logger log = Logger.getLogger(App.class);
    static {
        org.apache.log4j.BasicConfigurator.configure();
    }

    public void hello() {
        System.out.println("Hello!");
    }

    public void goodbye() {
        System.out.println("Goodbye!");
        log.warn("Goodbye!");
    }
}